package cn.smart.epic.common.page;

import java.io.Serializable;

/**
 * @Auther Uncle_Z
 * @date 2017/9/19 22:36
 * @Email:2545375@qq.com
 * @Descrition
 * @since 1.0
 */

public class PageReq implements Serializable {
    private static final long serialVersionUID = -1524970970794892969L;

    private int limit;
    private int offset;
    private String sort;
    private String order;
    private boolean openSort;
    private boolean asc;

    public PageReq() {

    }

    public PageReq(int limit, int offset, String sort, String order) {
        this.limit = limit;
        this.offset = offset;
        this.sort = sort;
        this.order = order;
    }


    public int getLimit() {
        return limit;
    }

    public void setLimit(int limit) {
        this.limit = limit;
    }

    public int getOffset() {
        return offset;
    }

    public void setOffset(int offset) {
        this.offset = offset;
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    public String getOrder() {
        return order;
    }

    public void setOrder(String order) {
        this.order = order;
    }

    public boolean isOpenSort() {
        return openSort;
    }

    public void setOpenSort(boolean openSort) {
        this.openSort = openSort;
    }

    public boolean isAsc() {
        return asc;
    }

    public void setAsc(boolean asc) {
        this.asc = asc;
    }
}
